﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 建造者模式
{
    //抽象建造者，这个场景下为 "组装人" ，这里也可以定义为接口
    public abstract class Builder
    {
        /// <summary>
        /// 封装cpu
        /// </summary>
        public abstract void BuildCpu();

        /// <summary>
        /// 封装主板
        /// </summary>
        public abstract void BuildMotherboard();

        /// <summary>
        /// 封装硬盘
        /// </summary>
        public abstract void BulidHardDisk();

        /// <summary>
        /// 封装内存条
        /// </summary>
        public abstract void BulidRAM();

        /// <summary>
        /// 获得组装好的电脑
        /// </summary>
        /// <returns></returns>
        public abstract Computer GetBulidComputer();
    }
}
